<%--
  Created by bothin
  At 2019/12/16 17:08
  Description: 
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<form class="layui-form" action="${pageContext.request.contextPath}/employee/salesman/add?page=${page!=null?page:'1'}" method="post" style="margin-top: 30px;">
    <div class="layui-form-item">
        <label class="layui-form-label">名字 *</label>
        <div class="layui-input-inline">
            <input type="text" name="name" required placeholder="请输入名字" value="${employee==null?'':employee.name}" autocomplete="off" class="layui-input layui-form-danger">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">手机号码 *</label>
        <div class="layui-input-inline">
            <input type="text" name="phone" required placeholder="请输入号码" value="${employee==null?'':employee.phone}" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-inline">
            <input type="password" name="password" placeholder="请输入密码（不输入时，默认为手机号）" value="${employee==null?'':employee.password}" autocomplete="off" class="layui-input layui-form-danger">
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <div class="layui-input-inline">
            <input type="text" name="employeeId" value="${employee==null?'':employee.employeeId}" autocomplete="off" class="layui-input layui-form-danger">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block" style="margin-left: 143px;">
            <button class="layui-btn" type="submit">立即提交</button>
            <button class="layui-btn layui-btn-primary" type="reset">重置</button>
        </div>
    </div>
</form>

